<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<script src="../libs/vue.js"></script>
<body>
    <h1>hhh</h1>
    <div class="app">
        {{message}}

      <div>
        <button v-bind:disabled="isButtonDisabled">这是按钮</button>
        <span v-bind:[spanattr]="showmyname">显示文字</span>
      </div>
    </div>
</body>
<script>
    Vue.config.productionTip = false;

var app = new Vue({
  el: '.app',
  data: {

    message: 'Hello Vue!',
    isButtonDisabled: null ,
    // 动态属性 作为参数
    spanattr : 'data-myname' ,
    showmyname: '显示name'
  }
});

</script>
</html>